<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" 
%><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" 
%><%@ page contentType="text/html;charset=ISO-8859-1"
%><html:html locale="true">
    <head>
        <title><bean:message key="colisionListar.title"/></title>
        <html:base/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"></link>
    </head>
    <body>
        <div id="header">
            <div id="title"><bean:message key="colisionListar.title"/></div>
            <div id="menu">
                <ul id="nav">
                    <%//li><html:link action="/ColisionCrearI.do"><bean:message key="colisionListar.label1"/></html:link></li%>
                    <li><html:link action="/ColisionBuscarI.do"><bean:message key="colisionListar.label2"/></html:link></li>
                    <li>&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;</li>
                    <li><html:link action="/ColisionListarI.do"><bean:message key="colisionListar.label3"/></html:link></li>

                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div class="content">
                            ${empty msg ? "" : msg}
                <h2><bean:message key="colisionListar.label0"/></h2>
                <table border="1">
                    <thead>
                        <tr>
                            <th>&nbsp;</th>
                            <th>Oferta1</th>
                            <th>Oferta2</th>
                            <th>Causa</th>
                            <th>Gravedad</th>
                            <th>&nbsp;</th>

                        </tr>
                    </thead>
                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                        <logic:iterate id="colision" collection="${empty L_Colision ? _vacio : L_Colision}">
                            <tr>
                                <td
                                  ${colision.gravedad == 0 ? "bgcolor='#FF0000'>" : ""}
                                  ${colision.gravedad == 1 ? "bgcolor='#FF6600'>" : ""}
                                  ${colision.gravedad == 2 ? "bgcolor='#FFAA00'>" : ""}
                                  ${colision.gravedad == 3 ? "bgcolor='#FFCC00'>" : ""}
                                  ${colision.gravedad == 4 ? "bgcolor='#FFFF00'>" : ""}
                                  ${colision.gravedad == 5 ? "bgcolor='#FFFF44'>" : ""}
                                  ${colision.gravedad == 6 ? "bgcolor='#FFFF88'>" : ""}
                                  ${colision.gravedad == 7 ? "bgcolor='#FFFFBB'>" : ""}
                                  ${colision.gravedad == 8 ? "bgcolor='#FFFFEE'>" : ""}
                                </td>
                                <td>${colision.oferta1.requisito.asignatura.codigo}</td>
                                <td>${empty colision.oferta2 ? "" : colision.oferta2.requisito.asignatura.codigo}</td>
                                <td>${colision.causa}</td>
                                <td>
                                  ${colision.gravedad == 0 ? "Alta +" : ""}
                                  ${colision.gravedad == 1 ? "Alta -" : ""}
                                  ${colision.gravedad == 2 ? "Media-Alta " : ""}
                                  ${colision.gravedad == 3 ? "Media" : ""}
                                  ${colision.gravedad == 4 ? "Media" : ""}
                                  ${colision.gravedad == 5 ? "Media" : ""}
                                  ${colision.gravedad == 6 ? "Media-Baja" : ""}
                                  ${colision.gravedad == 7 ? "Baja +" : ""}
                                  ${colision.gravedad == 8 ? "Baja -" : ""}

                                  </td>
                               <td
                                  ${colision.gravedad == 0 ? "bgcolor='#FF0000'>" : ""}
                                  ${colision.gravedad == 1 ? "bgcolor='#FF6600'>" : ""}
                                  ${colision.gravedad == 2 ? "bgcolor='#FFAA00'>" : ""}
                                  ${colision.gravedad == 3 ? "bgcolor='#FFCC00'>" : ""}
                                  ${colision.gravedad == 4 ? "bgcolor='#FFFF00'>" : ""}
                                  ${colision.gravedad == 5 ? "bgcolor='#FFFF44'>" : ""}
                                  ${colision.gravedad == 6 ? "bgcolor='#FFFF88'>" : ""}
                                  ${colision.gravedad == 7 ? "bgcolor='#FFFFBB'>" : ""}
                                  ${colision.gravedad == 8 ? "bgcolor='#FFFFEE'>" : ""}
                                </td>
                            </tr>
                        </logic:iterate>
                    </tbody>
                </table>

                        </div>
                    </div>
                    <div id="right"><jsp:include page="/ppal/menu.jsp" flush="true"/></div>
                    <div class="clearer"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
        <h3 class="title"></h3>
        <div id="footer"> <bean:message key="bottom.label"/> </div>
        
    </body>
</html:html>